<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>原型对象中this的指向</title>
	</head>
	<body>
	</body>
	<script>
		var bj=10;
		function Add(){　　console.log(this);//Add{}
		};
		Add.prototype.bj=10;
		Add.prototype.say=function(){
		    console.log(this);//Add{}
		    return function(){
		        console.log(this);//window
		    }
		}
		var obj=new Add;//没传参数可以省略括号
		obj.say()();
	</script>
</html>
